return this.getIndicatorIcon();
},
- _getStatus: function() {
- let values = this._connectionItems.values();
- for (let item of values) {
- if (item.isActive())
- return item.getName();
- }
-
- return _("Off");
- },
-
getConnectLabel: function() {
return _("Connect");
},
case NetworkManager.DeviceState.DISCONNECTED:
return _("Off");
case NetworkManager.DeviceState.ACTIVATED:
- return this.parent();
+ return _("Connected");
case NetworkManager.DeviceState.UNMANAGED:
/* Translators: this is for network devices that are physically present but are not
under NetworkManager's control (and thus cannot be used in the menu) */
return _("VPN");
},
+ _getStatus: function() {
+ let values = this._connectionItems.values();
+ for (let item of values) {
+ if (item.isActive())
+ return item.getName();
+ }
+
+ return _("Off");
+ },
+
_getMenuIcon: function() {
return this.getIndicatorIcon() || 'network-vpn-symbolic';
},